//
//  TopModal.m
//  Project1
//
//  Created by 黄珂耀 on 15/7/21.
//  Copyright (c) 2015年 黄珂耀. All rights reserved.
//

#import "TopModal.h"

@implementation TopModal

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"rating"])
    {
        _average = [[value objectForKey:@"average"] floatValue];
    }
}

@end
